package com.huilian.iotbox.admin.dao;

import com.huilian.iotbox.data.dto.MoneyWithdrawDto;
import com.huilian.iotbox.data.po.MoneyWithdraw;
import com.huilian.iotbox.data.vo.MoneyWithdrawVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;


/**
 * @author 谢洛涛
 * @date 2021/4/8 9:39
 */
@Mapper
public interface MoneyWithdrawDao {
    List<MoneyWithdrawVo> findMoneyWithdrawList(MoneyWithdraw moneyWithdraw);

    Integer addMoneyWithdraws(MoneyWithdrawDto moneyWithdrawDto);

    MoneyWithdrawVo findMoneyWithdrawById(Integer id);

    Integer updateMoneyWithdraw(MoneyWithdrawDto moneyWithdrawDto);

    MoneyWithdrawVo findMoneyWithdrawByOutTradeNo(@Param("outTradeNo") String outTradeNo, @Param("amount") BigDecimal amount);

    MoneyWithdrawVo findMoneyWithdrawStatistics(MoneyWithdraw moneyWithdraw);
}
